import requests
from lxml import etree

headers = {'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36'}
res = requests.get('https://www.dongchedi.com/koubei/7502659341313396798#comment',headers=headers)
print(res.text)
# tree = etree.HTML(res.content)
#
# datas = tree.xpath('//section//div[@class="tw-flex tw-items-center"]')
# for data in datas:
#     name = data.xpath('.//div[@class="tw-flex-1"]/a/@title')[0]
#     text = data.xpath('.//div[@class="tw-flex-1"]/text()')[0]